package com.ruoyi.industry.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.industry.domain.ProjectWorkshop;

import javax.servlet.http.HttpServletResponse;

/**
 * 厂房Service接口
 *
 * @author MagicCube
 * @date 2023-05-08
 */
public interface IProjectWorkshopService
{
    /**
     * 查询厂房
     *
     * @param id 厂房主键
     * @return 厂房
     */
    public ProjectWorkshop selectProjectWorkshopById(Long id);

    /**
     * 查询厂房列表
     *
     * @param projectWorkshop 厂房
     * @return 厂房集合
     */
    public List<ProjectWorkshop> selectProjectWorkshopList(ProjectWorkshop projectWorkshop);

    /**
     * 新增厂房
     *
     * @param projectWorkshop 厂房
     * @return 结果
     */
    public int insertProjectWorkshop(ProjectWorkshop projectWorkshop);

    /**
     * 修改厂房
     *
     * @param projectWorkshop 厂房
     * @return 结果
     */
    public int updateProjectWorkshop(ProjectWorkshop projectWorkshop);

    /**
     * 批量删除厂房
     *
     * @param ids 需要删除的厂房主键集合
     * @return 结果
     */
    public int deleteProjectWorkshopByIds(Long[] ids);

    /**
     * 删除厂房信息
     *
     * @param id 厂房主键
     * @return 结果
     */
    public int deleteProjectWorkshopById(Long id);

    Map<String, Object> selectProjectWorkshopByNumber(String spaceId, boolean show);

    int deleteProjectWorkshopBySerialNumber(String spaceId);

    void exportEntrust(HttpServletResponse response, Long id);

    String importUser(List<ProjectWorkshop> projectWorkshops, boolean updateSupport, String operName);
}
